From: Debian Science Maintainers Date: Tue, 9 Dec 2025 11:19:37 +0000 (+0000) Subject: In tests, expect a non-git version number X-Git-Tag: archive/raspbian/2.3.3+dfsg-3+rpi1^2~42 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bbe3f2f3b642582ff224cb8c63640c17a6e9ed70;p=pandas.git In tests, expect a non-git version number (This number is set in debian/rules.) Needed as Debian buildds use tarballs Author: Rebecca N. Palmer Forwarded: not-needed Gbp-Pq: Name deb_nonversioneer_version.patch --- diff --git a/pandas/tests/test_common.py b/pandas/tests/test_common.py index e8a1c961..f198a9d5 100644 --- a/pandas/tests/test_common.py +++ b/pandas/tests/test_common.py @@ -163,8 +163,7 @@ def test_standardize_mapping(): def test_git_version(): # GH 21295 git_version = pd.__git_version__ - assert len(git_version) == 40 - assert all(c in string.hexdigits for c in git_version) + assert git_version == 'not-from-upstream-git' def test_version_tag(): diff --git a/pandas/tests/util/test_show_versions.py b/pandas/tests/util/test_show_versions.py index 72c9db23..94d08b4f 100644 --- a/pandas/tests/util/test_show_versions.py +++ b/pandas/tests/util/test_show_versions.py @@ -56,7 +56,7 @@ def test_show_versions_console(capsys): assert "INSTALLED VERSIONS" in result # check full commit hash - assert re.search(r"commit\s*:\s[0-9a-f]{40}\n", result) + assert re.search(r"commit\s*:\snot-from-upstream-git\n", result) # check required dependency # 2020-12-09 npdev has "dirty" in the tag